package Server;

import java.io.File;

public class Server {

	public Server() {
		Log log = new Log();
		File file = new File("DBFile.txt");
		Database DB = new Database(log, file);
		ServerPrinter printer = new ServerPrinter(DB, log);
		printer.start();

		try {
			new SecureServer(DB);
		} catch (Exception e) {
			e.printStackTrace();

			System.out.println("Server died!");

			// continue;
		}
	}

	public static void main(String[] args) {
		new Server();
	}
}
